<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="/WEB-INF/tld/importTag.tld" prefix="importTag"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@taglib uri="/WEB-INF/tld/importTag.tld" prefix="importTag"%>
<%@page import="com.yaodian100.core.common.utils.ServerValue"%>
<%@ taglib uri="/WEB-INF/tld/pageutil.tld" prefix="pu"%>
<c-rt:set var="frontHtmlPath" value='<%=ServerValue.getFrontApachePath()%>'/>
<c-rt:set var="frontContentHtmlPath" value='<%=ServerValue.getFrontContentHtmlPath()%>'/>
<c-rt:set var="hostName" value='<%=request.getServerName()%>'/>
<%
	response.setHeader("Pragma", "No-Cache");
	response.setHeader("Cache-Control", "No-Cache");
	response.setDateHeader("Expires", 0);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="description" content="耀点100 - 中国第一家真正的百货购物商城！提供网民搜索耀点100各式商品，让您享受愉悦优值的购物体验。" />
<meta http-equiv="keywords" content="网上购物, 在线交易, 网上交易, 家电, 服饰, 美容, 家居, 数码, 母婴, 搜索" />
<title><tiles:insertAttribute name="title" ignore="true" /> <tiles:insertAttribute name="commonTitle" ignore="true" /></title>
<link rel="stylesheet" href="/css/jquery-ui-1.7.2.custom.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/css/yaodian100_header_v5.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/css/yaodian100_pages_v2.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/css/yaodian100_footer_v3.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/css/searchpg_v2.css" type="text/css" media="screen" />
<script type="text/javascript" charset="UTF-8" src="/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="/js/cart.js"></script>
<script type="text/javascript" charset="UTF-8" src="/js/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="/js/jquery.bgiframe.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="/js/onchangeTab_v2.js"></script>
<script type="text/javascript" src="/js/jquery.autocomplete.min.js"></script>
<script type="text/javascript" src="/js/pageable.js"></script>
<script type="text/javascript" src="http://partner.googleadservices.com/gampad/google_service.js"></script>
<c-rt:if test="${fn:endsWith(hostName, 'yaodian100.com')}">
	<script type="text/javascript">
		GS_googleAddAdSenseService("ca-pub-9592829756492568");
		GS_googleEnableAllServices();
	</script>
	<script type="text/javascript">
		GA_googleAddSlot("ca-pub-9592829756492568", "yd100_99_search_sidebar_image_01");
		GA_googleAddSlot("ca-pub-9592829756492568", "yd100_99_search_sidebar_image_02");
		GA_googleAddSlot("ca-pub-9592829756492568", "yd100_99_search_sidebar_image_03");
	</script>
	<script type="text/javascript">
		GA_googleFetchAds();
	</script>
</c-rt:if>
<script type="text/javascript">
$(document).ready( function() {
	for(i=0;i<document.searchForm.z.options.length;i++) {
		if(document.searchForm.z.options[i].value==document.formObj.z.value) {
			document.searchForm.z.options[i].selected=true;
		}
	}
});
</script>
</head>
<body>
	<div id="container">
		<c-rt:if test="${!fn:endsWith(hostName, 'yaodian100.com')}">
			<importTag:static path="${frontHtmlPath}${hostName}/pages/header/customTop.html"/>
		</c-rt:if>
		<importTag:static path="${frontHtmlPath}/pages/header/${hostName}_header.html"/>
		<div id="header">
		<tiles:insertAttribute name="topbar" ignore="true" />
		<tiles:insertAttribute name="logobar" ignore="true" />
		<tiles:insertAttribute name="categorynav" ignore="true" />
		<tiles:insertAttribute name="searchbar" ignore="true" />
		</div>
		
			<div class="s-location">
			${pu:reqSet('theNavigation', pu:getNavigation(param.z)) }
			<c-rt:forEach items="${theNavigation }" var="tn" varStatus="status">
			<c-rt:set var="tnCount" value="${status.count }" scope="request"/>
			</c-rt:forEach>
			<c-rt:if test="${tnCount>0}">
			<a href="#" onclick="document.formObj.z.value='';encodeKeyword2();">所有分类</a> &gt;
			
			
			<c-rt:forEach items="${theNavigation }" var="nav" varStatus="status">
				
				 <c-rt:if test="${status.index==0}">
				<c-rt:set var="CL1" value="${nav[0]}"/>
				</c-rt:if>
				<c-rt:if test="${status.index==1}">
				<c-rt:set var="CL2" value="${nav[0]}"/>
				</c-rt:if>
				<c-rt:if test="${status.index==2}">
				<c-rt:set var="CL3" value="${nav[0]}"/>
				</c-rt:if>
				<c-rt:if test="${status.index!=tnCount-1}">
				<a href="#" onclick="document.formObj.z.value='${nav[0] }';encodeKeyword2();">${nav[1] }</a>
				>
				</c-rt:if>
				<c-rt:if test="${status.index==tnCount-1}">
				${nav[1] }
				:
				</c-rt:if>
			</c-rt:forEach>
			</c-rt:if>
			<c-rt:if test="${empty tnCount || tnCount==0}">
			所有分类 :
			</c-rt:if>
			
			<s:if test="type eq 'input'"><span>高级搜索</span></s:if>
			<span><c-rt:if test="${!empty searchKeyword}">搜索 
				
				<b id="searchKeyword"><c-rt:out value="${pu:urlDecoding(searchKeyword, 'UTF-8')}"/></b>
				 的结果，
				 </c-rt:if>
				 <c-rt:if test="${empty searchKeyword}">
				搜索所有的结果，
				</c-rt:if>
				<c-rt:if test="${result1.total>0}">
				为你找到 <b>${result1.total}</b> 件商品
				</c-rt:if>
				<c-rt:if test="${empty result1 || result1.total==0}">
				沒有找到相关商品
				</c-rt:if>
				</span>
		    </div>
			<!-- main start -->
		<s:if test="type eq 'input'">
			<div id="main" class="advs">
				<tiles:insertAttribute name="sidebar" ignore="true" />
				<tiles:insertAttribute name="content" ignore="true" />
			</div>
		</s:if><s:else>
			<div id="main" class="searchbg">
		<tiles:insertAttribute name="sidebar" ignore="true" />
		<tiles:insertAttribute name="content" ignore="true" />
			</div>
		</s:else>
			<!-- main end -->
		
		<div id="helpfooter">
			<importTag:static path="${frontHtmlPath}${hostName}/pages/footer/helpfooter.html"/>
		</div>
		<div id="footer_family">
			<importTag:static path="${frontHtmlPath}${hostName}/pages/footer/footer_family.html"/>
		</div>
		<div id="footer">
			<importTag:static path="${frontHtmlPath}${hostName}/pages/footer/footer.html"/>
		</div>
		<c-rt:if test="${!fn:endsWith(hostName, 'yaodian100.com')}">
				<importTag:static path="${frontHtmlPath}${hostName}/pages/footer/customBottom.html"/>
		</c-rt:if>
		<importTag:static path="${frontHtmlPath}/pages/footer/${hostName}_footer.html"/>
	</div>
</body>
</html>